package com.itany.mall.service;

import java.util.Map;

import com.itany.mall.entity.OrderDetail;
import com.itany.mall.entity.User;
import com.itany.mall.exception.UserNotFoundException;

public interface UserService {

	User login(String name, String password) throws UserNotFoundException;

	// 当用户退出时, 保存用户的购物车信息
	void saveCart(Map<Long, OrderDetail> cart);

	// 当用户登录成功时, 加载用户的购物车信息
	Map<Long, OrderDetail> loadCart(long userId);

}
